﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;

namespace MyWeb.Business
{
    public class ShopService
    {
        public static ShopController db = new ShopController();

        #region[Shop_Insert]
        public void Shop_Insert(ShopInfo data)
        {
            db.Shop_Insert(data);
        }
        #endregion

        #region[Shop_Update]
        public void Shop_Update(ShopInfo data)
        {
            db.Shop_Update(data);
        }
        #endregion

        #region[Shop_Delete]
        public void Shop_Delete(string Id)
        {
            db.Shop_Delete(Id);
        }
        #endregion

        #region[Shop_GetByAll]
        public DataTable Shop_GetByAll()
        {
            return db.Shop_GetByAll();
        }
        #endregion

        #region[Shop_GetById]
        public DataTable Shop_GetById(string Id)
        {
            return db.Shop_GetById(Id);
        }
        #endregion

        #region[Shop_GetByTop]
        public DataTable Shop_GetByTop(string Top, string Where, string Order)
        {
            return db.Shop_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
